#include "stdafx.h"
#include "ocr.h"

#include "include/imagerecog.h"
#include "include/head.h"


int judgeBlank(const char *str,const char *type)
{
	try
	{
		if(strlen(str) <= 0)
			return -1;
		int start = time(NULL);
		ImageRecog ir;
		int res = ir.IsBlank(str,type);
		int end = time(NULL);
		cout<<str<<" time used "<<end-start<<"s"<<endl;
		return res;
	}
	catch(exception &e)
	{
		cout<<str<<" catch exception" <<e.what()<<endl;
		return -3;
	}	
}

